﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

class PuzzleGroup
{
    private int groupID;
    public int GroupID
    {
        get { return groupID; }
    }

    private bool stoneGroup;
    public bool StoneGroup
    {
        get { return stoneGroup; }
        set { stoneGroup = value; }
    }


    private List<PuzzleObject> objectList;
    public List<PuzzleObject> ObjectList
    {
        get { return objectList; }
    }

    public PuzzleGroup(int groupID)
    {
        this.groupID = groupID;

        this.stoneGroup = false;

        objectList = new List<PuzzleObject>();
    }

    public void AddObject(PuzzleObject obj)
    {
        objectList.Add(obj);
    }

    public void RemoveObject(PuzzleObject obj)
    {
        objectList.Remove(obj);
    }

    public void ClearList()
    {
        objectList.Clear();
    }

    public int GetSize()
    {
        return objectList.Count;
    }
}
